package org.raymond.iworks.study.basic.designpattern.facade;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public class Popcorn {
    private Popcorn(){}
    private final static class Holder {
        private final static Popcorn instance = new Popcorn();
    }
    public static Popcorn getInstance(){
        return Popcorn.Holder.instance;
    }
    public void on(){
        System.out.println("popcorn on");
    }
    public void off(){
        System.out.println("popcorn off");
    }
    public void pop(){
        System.out.println("popcorn pop");
    }
}
